package com.googlecode.astoolkit.events {
	
	import com.googlecode.astoolkit.vo.ParamsObject;
	
	import flash.events.Event;
	
	public class GotoEvent extends Event{
		
		public static const GOTO:String = "goto";
		
		private var _path:String;
		private var _params:ParamsObject;
		
		public function GotoEvent(path:String, params:Object=null, bubbles:Boolean=false, cancelable:Boolean=false){
			super(GOTO, bubbles, cancelable);
			_path = path;
			_params = (params) ? ParamsObject(params) : new ParamsObject();
		}
		
		//
		public function get path():String{
			return _path;
		}
		
		//
		public function get params():ParamsObject{
			return _params;
		}
	}
}